--- layout: default title: R Level Zero Assignment nav_order: 6 --- SingleUsePlasticBagCharge

Visualization of Single-Use Plastic Bag Usage at Retail Stores After Implementing a "Bag Tax"

Question

Does implementing a charge for single use plastic bags ("Bag Tax") lead to less overall usage?

Variables:

Dataset Used

"Bag Tax" by Montgomery County of Maryland

https://data.montgomerycountymd.gov/Finance-Tax-Property/Bag-Tax/xnjh-vgc4

Accessed 8/8/21

For the following visualizations, I chose to focus on dates between 2012-01-01 and 2021-06-01; 2012 for the start since date points became more regular and abundant.

Its hard to see an overall trend from the above charts, as there are many accounts and not all of them started reporting in 2012 and/or regularly reported their bag counts. I chose to visualize the data for a few accounts individually to get an idea of the effects of the bag charge from a few cases. Below is a function for visualizing the trends in bag count over time for a single account.

The charts above are for the account with the largest cumulative count of plastic bags, the Giant of Maryland grocery store company. It appears that the charge may have slowed the increase in plastic bag usage, however in 2018 and again 2020 it gradually began to pickup again. This may be due to people getting used to the bag charge and ignoring it. In 2020/2021, it may have been because people were grocery shopping more after the start of the COVID19 pandemic (since many restaurants were closed).

For Dick's Sporting Goods, there was a noticeable decrease in the rate at which the number of bags bought was increasing starting around mid 2013. Following the trendline in the difference plot, the bag count began to decrease around mid to late 2015. However, the difference plot flattens around the start of 2018 and begins to increase afterwards (while still negative). The initial decline may have been due to the bag tax, a change in consumer behavior due to continuing discussions about plastic bag charges and bans, or maybe an unrelated reason, such as competition with other stores or online retailers. If the main factor was the bag tax, then the increase in the difference after 2018 may be due to a similar reason to the Giant of Maryland, that people became used to the tax and began to ignore it.

The bag usage plateaued for the Chapala Restaurant around 2017.

The bag counts at Fresh Market seem to share similarities with the earlier graphs; an increase that plateaus and begins to decrease around 2016, followed by an increase starting in 2020.

The Home Depot's bag counts increased at first and then plateaued and began to decrease around 2016

The bag count at Walmart seemed to consistently increase until April 2020.

Conclusion

It is difficult to tell if the plastic bag tax in Montgomery had any effect on the use of plastic bags in stores. From the plots above, bag counts plateaued or even decreased in some of the stores for a few years after the introduction of the tax, but began to increase again starting around 2019. These trends could have been due to reasons other than the bag tax, such as changes in population or competition with other stores or online retailers. However, if we assume that the trends are due largely to the bag tax, it seems to have had little effect on consumer behavior after the first years after it's introduction. This may be due to consumers getting used to the tax and ignoring it, the tax not being a large enough incentive to switch to reusable bags, or that a bag tax in one county isn't enough to change the usage of plastic bags.

Review of the "Bag-Tax" Dataset

I found the Bag Tax data set on data.gov, which links to the landing page of the dataset on Montgomery County’s “dataMongomery” website. It was created and is maintained by the Montgomery County of Maryland. The description provided on dataMontgomery briefly explains the plastic bag charge law that was passed in 2011, and that the dataset represents information that been captured since the law went into effect. It also lists the columns in the dataset and provides a brief description of each of them.

FAIR - Reuse Principle

The column descriptions provided on the site greatly help the data fulfill the FAIR Reuse principle. However, while using the data, I found that some of the dates in the .csv file were from before May 3rd, 2011, the start of the bag tax law. One of the records was from as early as 1931. This conflicted with the description with the dataset and was confusing to me since some accounts appeared to be reporting bag counts and tax collection before the law was implemented. I chose to ignore data before 2012 in my code to reduce the possible effects that these inconsistent data points could have on the trendlines in the visualizations. I would suggest explaining this in somewhere in the dataset’s metadata, as it would clarify the inconsistency and may give future users more confidence in the accuracy of the data closer to May 2011.

There were also a few typos in the original csv I downloaded, which I found when converting the “Dates To” column to Pandas’ date time format. A few of the dates were from 2031, which didn’t affect my results, but did cause python to throw an error while converting the dates. The error was easily fixed by manually changing the dates to be in 2021, but to be safe the dataset should be reviewed and corrected by the maintainers.